<?php
/*
 * $id:admin/includes/languages/english/opi_productimage.php
 *
 * oscProductImage version 2.0
 *
 * Copyright 2011, Zaenal Muttaqin
 * http://blog.lokamaya.net - http://lokamaya.com
 *
 * Licensed under the MIT license:
 * http://creativecommons.org/licenses/MIT/
 *
 */
 
define('OPI_TITLE', 'OsC Product Image Module');

define('OPI_DIALOG_DIRECTORY', 'New Directory');
define('OPI_DIALOG_UPLOAD', 'Upload Image');
define('OPI_DIALOG_BROWSE', 'Browse Image');
define('OPI_DIALOG_HELP', 'Product Image Help');

define('OPI_HEADER_DIRECTORY', 'Server Directory:');
define('OPI_HEADER_DIRECTORY_NEW', 'New Directory:');
define('OPI_HEADER_FILE', 'Choose File:');
define('OPI_HEADER_RENAME', 'Rename File:');

define('OPI_LABEL_DIRECTORY', 'Select Directory');
define('OPI_LABEL_DIRECTORY_NEW', 'Directory Name');
define('OPI_LABEL_FILE', 'File to Upload');
define('OPI_LABEL_RENAME', 'Rename file as current product title?');
define('OPI_LABEL_IMAGE_PREVIEW', ' IMAGE PREVIEW  <i>not available</i> <b>upgrade your browser!</b> ');

define('OPI_WARNING_DIRECTORY_NOT_EXIST', ' <br />Go to <b>Configuration > Images > OPI: Relative Directory</b> to edit default directory.');

/*JAVASCRIPT HELPER LANG*/
$MESSAGES_OBJECT = "\n" .
            "    unknown: 'Unknown error',\n" .
            "    confirm_remove: 'Remove this image from current product?',\n" .
            "    confirm_delete: 'Delete this image from server?',\n" .
            
            "    success_upload: 'Success: Image has been uploaded successfully',\n" .
            "    success_create: 'Success: New directory has been created',\n" .
            "    success_delete: 'Success: Image has been deleted from server',\n" .

            "    error_not_exist: 'Error: Directory does not exist.',\n" .
            "    error_not_writable: 'Error: File/directory is not writeable',\n" .
            "    error_not_readable: 'Error: directory does not exist/readable',\n" .

            "    warning_empty_folder: 'There is no image in this directory',\n" .
            "    error_delete_global: 'Can not delete image: file is not writeable or not found',\n" .
            "    error_delete_empty: 'Can not delete image: file is not writeable or not found',\n" .
            "    error_delete_in_use: 'Can not delete image: image still in use by other products',\n" .
            "    error_delete_privilege: 'You have no privilege to delete image',\n" .

            "    error_select_directory: 'Please select target directory',\n" .
            "    error_file_empty: 'Please select file to upload',\n" .
            "    error_file_extension: 'Extension not allowed',\n" .
            
            "    error_create_privilege: 'You have no privilege to create new directory',\n" .
            "    error_create_exist: 'Directory already exists',\n" .
            "    error_create_empty: 'Directory name is empty or less than 4 characters',\n" .
            "    error_create_alphanumeric: 'Only alphanumeric, dash and underscore are allowed for directory name',\n" .
            "    error_create_lowercase: 'Directory name must be in lowercase',\n" .
            "    error_create_character: 'Directory name should not be started with dash or underscore'\n  ";

//Please do not use symbol such as &nbsp;  or any other unicode that start with "&"
//jQuery does not handle symbol and unicode correctly
define('OPI_MESSAGES_OBJECT', $MESSAGES_OBJECT);
define('OPI_BUTTONS_OBJECT', "add:'Add', back:'Back', cancel:'Cancel', close:'Close', confirm:'Confirm', create:'New Directory', deletes:'Delete', oke:'Ok', preview:'Preview', remove:'Remove', save:'Save', submit:'Submit', upload:'Upload', xBrowse:'Browse Server', xHelp:'Help', xUpload:'Upload Image'");
define('OPI_LABELS_OBJECT', "add:'Add to Product', create:'Create New Directory', dirBrowse:'Browse Directory', dirNew:'New Directory', dirTarget:'Target Directory', deletes:'Delete from Server', preview:'Preview Image', remove:'Remove from Product', tips:'* Drag the image to short', page:'Page', of:'of', from:'From', files:'files', pleaseSelect:'Select:'");

/*HELP TEXT*/
$OPI_HELP_TEXT = <<<EOF
<dl>
        <dt>Image List</dt>
        <dd>
          <ul>
            <li>You can <b>sort</b>, <b>preview</b> and <b>remove</b> product's images.</li>
            <li>Sort the image by draging it, the <i>first one</i> will become default image. And don't forget to <i>save your work</i> by clicking <b>save</b> button.</li>
          </ul>
        </dd>
        <dt>Upload Image</dt>

        <dd>
          <ul>
            <li>Extension allowed: .gif, .jpg, .jpeg, .png</li>
            <li>By checking the "auto rename" checkbox, the image will be renamed as the current page title.</li>
            <li>After successfully uploading file, the image will be added to product image list automagically. But you still need to save your work by saving the main product form (click button <b>save</b>) .</li>
          </ul>
        </dd>
        <dt>Browse Server</dt>

        <dd>
          <ul>
            <li>Browse the image directory from server.</li>
            <li>Click on <b>add</b> button to add that image to the product.</li>
            <li>Click on <b>trash</b> button will remove the image from server.</li>

          </ul>
        </dd>
</dl>
EOF;

define('OPI_HELP_TEXT', $OPI_HELP_TEXT);

?>
